﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace GiveGraphModel
{
    public class User  : Member
    {
        public string ZipCode { get; set; }
        public string Country { get; set; }
        public string FacebookToken { get; set; }
        public string GoogleUserId { get; set; }

        
        public virtual ICollection<Organization> FollowingOrganizations { get; set; }
    }

    public class UserConfiguration : EntityTypeConfiguration<User>
    {
        public UserConfiguration()
        {
            Property(u => u.ZipCode).IsRequired();
            Property(u => u.Country).IsRequired();
            
        }
    }
}
